/*************************************************************************
 * FILE:    inoutput.h
 * AUTHOR:  Karl Schmidbauer
 * VERSION: 1
 * DATE:    03/22/12
 * 
 * PURPOSE:
 *      Header file for input/output functionallity.
 *      Initilizes and provides communication for reading and writing to 
 *      registers.
 ************************************************************************/

#ifndef INOUTPUT
#define INOUTPUT

/*************************************************************************
 *INCLUDES - Libraries
 ************************************************************************/
#include <stdint.h>

/**
 * Reads in data from the IO port specified
 *
 * regAddress - register address to read data from
 */
uint8_t readIO(uint8_t regAddress);

/**
 * Writes specified data to the specified port
 *
 * regAddress - register address to write data to
 * data - data to write to the register
 */
void writeIO(uint8_t regAddress, uint8_t data);


#endif /* INOUTPUT_H_ */
